package br.com.naybee.service.conexaobancofs;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import br.com.naybee.domain.conexaobancobs.ConexaoBancoDadosBs;
import br.com.naybee.framework.client.core.FrontServiceController;
import br.com.naybee.framework.client.models.Model;

@Controller
@RequestMapping("conexaoBancoDadosFs")
public class ConexaoBancoDadosFs extends FrontServiceController {

	@Autowired
	private ConexaoBancoDadosBs bancoDadosBs;

	@ResponseBody
	@RequestMapping(value = "testaConexaoBancoDados", method = RequestMethod.POST)
	public Model testaConexaoBancoDados() {
		return bancoDadosBs.testaConexaoBancoDados();
	}

}
